﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HomeBlogList.ascx.cs" Inherits="SocialFront.Web.usercontrols.Blog.HomeBlogList" %>

<h2>Recent Blog</h2>

<asp:ListView ID="blogList" runat="server">
    <LayoutTemplate>
        <ul><asp:PlaceHolder ID="itemPlaceholder" runat="server" /></ul>
    </LayoutTemplate>
    <ItemTemplate>
        <li>
            <a href="<%# ((SocialFront.Entities.Blog)Container.DataItem).PageUrl %>"><%# ((SocialFront.Entities.Blog)Container.DataItem).Title %></a>
            <br />
            <%# ((SocialFront.Entities.Blog)Container.DataItem).CreatedDate.ToString("dd MMM yyyy") %>
        </li>
    </ItemTemplate>
    <EmptyDataTemplate><p>No blogs have been added yet!</p></EmptyDataTemplate>
</asp:ListView>